package com.cmccgz.udacs_landlord_webapp.bean;


import java.io.Serializable;

public class WebConfig implements Serializable {
    private String title;
    private String url;

    private WebConfig(String title, String url) {
        this.title = title;
        this.url = url;
    }

    public static WebConfig get(String title, String url) {
        return new WebConfig(title, url);
    }


    public static WebConfig get() {
        return get(null, null);
    }

    public WebConfig setTitle(String title) {
        this.title = title;
        return this;
    }

    public WebConfig setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public String getUrl() {
        return url;
    }
}
